package licode.unisop.client.inter;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 判断当前用户是否拥有指定权限
 *
 * @author WR
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
public @interface HasAuthority {
    String roles() default "";
    String permits() default "";
    String platform() default "";
    String terminal() default "";
    boolean all() default false;
    boolean allRole() default false;
    boolean allPermit() default false;
}
